<div class="container-fluid">
	<div id="pad-wrapper">
		<!-- products table-->
		<!-- the script for the toggle all checkboxes from header is located in js/theme.js -->
		<div class="table-wrapper products-table section">
			<div class="row-fluid head">
				<div class="span12">
					<h4>采血点管理</h4>
				</div>
			</div>
			
			<form action="" method="get" name="search">
			<div class="row-fluid filter-block">
				<div class="pull-left">
				</div>
				<div class="pull-right">
					<a class="btn-flat success" onclick="location.href='/bpoint/add'">添加</a>
				</div>
			</div>
			</form>
			
			<div class="row-fluid">
				<table class="table table-hover">
					<thead>
						<tr>
							<th class="span3">采血点</th>
							<th class="span3"><span class="line"></span>就诊时间</th>
							<th class="span3"><span class="line"></span>地址</th>
							<th class="span3"><span class="line"></span>交通</th>
							<th class="span3"><span class="line"></span>操作</th>
						</tr>
					</thead>
					<tbody>
						<?php if($list):?>
						<?php foreach ($list as $item):?>
						<!-- row -->
						<tr class="first">
							<td><?php echo $item['name']?></td>
							<td><?php echo $item['visit_remark']?></td>
							<td class="description"><?php echo $item['address']?></td>
							<td><?php echo $item['route']?>
							</td>
							<td>
								<button type="button" class=" btn-flat primary" onclick="window.location.href='/bpoint/edit?id=<?php echo $item['id']?>'">查看</button>
								<button type="button" class=" btn-flat primary" onclick="del(<?php echo $item['id']?>)">删除</button>
							</td>
						</tr>
						<?php endforeach;?>
						<?php endif;?>
					</tbody>
				</table>
			</div>
		</div>
		<!-- end products table -->
	</div>
	<div class="pagination pull-right">
	  <?php echo $pagination;?>
	</div>
</div>
<<script type="text/javascript">
<!--
function del(pid)
{
	if(confirm("确定要删除吗？"))
	{
		window.location.href = "/bpoint/del?id=" + pid;
	}
}
//-->
</script>

